import request from '@/utils/request'

// 获取列表数据
export function getManageAPI(params) {
  return request({
    url: '/pole/info/list',
    params
  })
}

// 编辑修改
export function putManageAPI(data) {
  return request({
    url: '/pole/info',
    method: 'PUT',
    data
  })
}

// 添加新的一体杆
export function addManageAPI(data) {
  return request({
    url: '/pole/info',
    method: 'POST',
    data
  })
}

// 删除一体杆
export function removeManageAPI(ids) {
  return request({
    url: `/pole/info/${ids}`,
    method: 'DELETE'
  })
}
